using UnityEngine;
using XNode;

namespace AI.FSM.Builder
{
    [NodeTint("#6b532e")]
    public abstract class FSMTransitionGraphNode : FSMGraphNode
    {
        public abstract FSMTransition<T> Build<T>(int targetIndex);
        public FSMStateGraphNode GetTransitionState()
        {
            var port = GetOutputPort("target");
            return (FSMStateGraphNode)port?.Connection?.node;
        }
    }
}